@charset "UTF-8";
:root{
  --bg-color:#ffffff;
  --secondary-bg-color:#eeeeee;
  --heading-color: #585757;
  --body-color: rgba(0, 0, 0, 0.7);
  --post-color: rgba(0, 0, 0, 0.44);
  --border-color: #eeeeee;
  --sidebar-bg-color: #eeeeee;
  --profile-border-color: #4d78cc;
  --nav-text-color:#5a5a5a;
  --tag-color: #424242;
}

html[data-theme='dark'] {
  --bg-color:#353b43;
  --secondary-bg-color:rgb(119, 119, 122);
  --heading-color: #4d78cc;
  --body-color:rgb(169,169,179);
  --post-color: rgba(0, 0, 0, 0.44);
  --border-color: #242930;
  --sidebar-bg-color: #242930;
  --profile-border-color: #353b43;
  --nav-text-color:rgb(191, 191, 191);
  --tag-color: rgb(191, 191, 191);
}

html {
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
}
body {
  color: var(--body-color);
  font-family: josefin sans,-apple-system,BlinkMacSystemFont,helvetica neue,pingfang sc,hiragino sans gb,STHeiti,microsoft yahei,wenquanyi micro hei,Arial,Verdana,sans-serif;
  width: 100%;
  margin: 0 auto 30px auto;
  background-color: var(--bg-color);
}
p {
  line-height: 2;
  font-weight: 400;
  overflow: hidden;
}
ol {
  line-height: 2;
}
ul {
  list-style-type: none;
}
a {
  text-decoration: none;
}
.category {
  padding: 4px 6px;
  border-radius: 3px;
  color: #000 !important;
  background-color: var(--secondary-bg-color);
  border: 1px solid var(--border-color);
}
.tag::before {
  content: "#";
  opacity: .5;
}
.tag, .category {
  display: inline-block;
  line-height: 1;
  margin: 5px 8px 5px 0;
}
.info i{
  opacity: 0.5;
  margin-right: 5px;
}
a:link, a:visited {
  opacity: 1;
  color: var(--tag-color);
}
a:hover, a:active {
  color: #2660ab;
}

.algolia-autocomplete {
  font-size: 14px;
}
.algolia-autocomplete .ds-dropdown-menu {
  width: 500px;
}

.content {
  height: auto;
  float: right;
  width: 75%;
}
.sidebar {
  width: 25%;
  height: 100%;
  min-height: 700px;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 4;
  background-color: var(--sidebar-bg-color);
}
.sidebar .logo-title {
  text-align: center;
  padding-top: 15%;
}
.sidebar .logo-title .logo {
  margin: 0 auto;
}
.sidebar .logo-title .title img {
  width: 130px;
  height: 130px;
  border: 10px solid var(--profile-border-color);
  border-radius: 50%;
  transition: transform 0.5s;
}
.sidebar .logo-title .title img:hover {
  transform: rotateZ(360deg);
  transition: transform 0.5s;
}
.sidebar .logo-title .title h3 {
  margin: 30px;
}
.sidebar .logo-title .title a {
  text-decoration: none;
  color: var(--heading-color);
  font-size: 30px;
  font-weight: bold;
}
.sidebar .my-links {
  height: 35px;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.sidebar .my-links .link-items {
  padding: 0 10px;
}
.sidebar .my-links .link-icon {
  font-size: 32px;
}

.sidebar .nav {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
}
.sidebar .nav .nav-item {
  padding: 10px;
}
.sidebar .nav a {
  color: var(--nav-text-color);
}
.sidebar .nav a:hover {
  font-weight: bold;
  color: #2660ab;
}
.sidebar .nav a.current {
  color: var(--nav-text-color);
  padding-bottom: 5px;
  border-bottom: 3px solid var(--nav-text-color);
}
.search {
  z-index: 5;
  width: 500px;
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  transition: top 0.5s;
}
.search-show {
  top: 20px;
  transition: top 0.5s;
}
.search .search-input {
  font-size: 14px;
  padding: 20px;
  text-align: center;
  height: 40px;
  width: 500px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  background-color: var(--sidebar-bg-color);
}
.cover {
  z-index: 4;
  height: 100%;
  width: 100%;
  position: fixed;
  top: -100%;
  background-color: rgba(0, 0, 0, 0.7);
  transition: top 0.5s;
}
.cover-show {
  top: 0;
  transition: top 0.5s;
}
.post {
  background-color: var(--bg-color);
  padding: 40px;
  border-bottom: 1px solid var(--border-color);
}
.post .post-title h1 {
  text-transform: uppercase;
  font-size: 30px;
  letter-spacing: 5px;
  line-height: 1;
}
.post .post-title h2 {
  font-size: 28px;
  line-height: 1.5;
  color: var(--heading-color);
}
.post .post-title h3 {
  line-height: 1;
  color: var(--heading-color);
  font-size: 22px;
  margin: 0;
}
.post .post-title a {
  text-decoration: none;
  letter-spacing: 1px;
  color: var(--heading-color);
}
.post .post-title a:hover {
  text-decoration: underline;
}
.post .post-content .p_part p {
  font-size: 14px;
  word-break: break-all;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.post .post-content a {
  text-decoration: none;
  letter-spacing: 1px;
  color: #2660ab;
}
.post .post-content ul {
  list-style-type: disc;
  line-height: 2;
}
.post .post-content a:hover {
  color: #2F69B3;
}
.post .post-content h3 {
  font-size: 20px;
}
.post .post-content h4 {
  font-size: 18px;
}
.post .post-content h5 {
  font-size: 16px;
}
.post .post-content img {
  max-width: 100%;
}
.post .post-menu {
  z-index: 3;
  position: fixed;
  right: 0;
  bottom: 50px;
  padding: 5px;
}
.post .post-menu .menu-item{
  margin: 5px;
}
.post .post-menu .menu-item .item-btn{
  font-size: 20px;
}
.post .post-toc {
  width: 13%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 0 30px 30px;
  background-color: var(--sidebar-bg-color);
  position: fixed;
  right: -20%;
  top: 0;
  bottom: 0;
  transition: right 0.5s;
}
.post .post-toc-show {
  right: 0;
}
.post .post-toc .toc-header{
  font-size: 20px;
  font-weight: bold;
  margin: 0 10px 10px;
}
.post .post-toc ul{
  font-size: 12px;
  padding-inline-start: 15px;
  margin-block-start: 0;
  margin-block-end: 0;
  line-height: 2;
}
.post .post-toc ul a {
  color: var(--nav-text-color);
}
.post .post-toc ul a:hover {
  color: #2660ab;
}
.post .post-toc .toc-icon {
  margin-left: -6.5px;
}
.post .post-footer .meta {
  max-width: 100%;
  display: flex;
  color: #bbbbbb;
}
.post .post-footer .meta .info {
  float: left;
  font-size: 12px;
  color: var(--body-color);
}
.post .post-footer .info .separator a {
  margin-right: 0.2em;
}
.post .post-footer .meta .info .date {
  margin-right: 10px;
}
.info .date,.author,.wordcount,.readtime {
  margin-right: 10px;
}
.post .post-footer .meta a {
  text-decoration: none;
  color: var(--body-color);
  padding-right: 10px;
}
.post .post-footer .meta a:hover {
  color: #2660ab;
}
.post .post-footer .tags {
  padding-bottom: 15px;
  font-size: 14px;
}
.post .post-footer .tags ul {
  display: inline;
  margin: 0;
  padding: 0;
}
.post .post-footer .tags ul li {
  list-style-type: none;
  margin: 0;
  padding-right: 5px;
  display: inline;
}
.post .post-footer .tags a {
  text-decoration: none;
  color: var(--post-color);
  font-weight: 400;
}
.post .post-footer .tags a:hover {
  text-decoration: none;
}
.pagination {
  margin: 30px;
  padding: 0px 0 56px 0;
  text-align: center;
}
.pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 20px;
}
.pagination ul li {
  margin: 0 2px 0 2px;
  display: inline;
  line-height: 1;
}
.pagination ul li a {
  text-decoration: none;
  color: var(--body-color);
}
.pagination .pre {
  float: left;
}
.pagination .next {
  float: right;
}

.post .single-post {
  width: 70%;
  margin: 0 auto;
  transition: transform 0.5s;
}
.post .single-post-toc {
  transform: translateX(-16%);
  transition: transform 0.5s;
}
.post .single-post .post-title {
  padding-bottom: 3em;
  border-bottom: 1px solid var(--border-color);
}
.post .single-post .post-title .info{
  font-size: 14px;
}
.post .single-post .post-content {
  font-size: 14px;
}
.post .single-post .post-footer {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  margin: 4em 0;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border-color);
}
.social-share .social-share-icon {
  border: none!important;
  color: var(--tag-color)!important;
}
.leancloud_visitors {
  font-size: 14px!important;
}
.v[data-class="v"] {
  font-size: 14px!important;
}
.v[data-class="v"] .vpanel .vwrap{
  border: 1px solid var(--border-color)!important;
  color: var(--body-color)!important;
}
.v[data-class="v"] .vwrap .vheader .vinput {
  border-bottom: 1px solid var(--border-color)!important;
}
.footer {
  clear: both;
  text-align: center;
  font-size: 12px;
  margin: 0 auto;
  bottom: 0;
  position: absolute;
  width: 100%;
  padding-bottom: 20px;
}
.footer a {
  color: #A6A6A6;
}
.footer a:hover {
  color: #2660ab;
}

/*for archive*/
.archive {
  width: 100%;
  background-color: var(--bg-color);
}
.list-with-title {
  font-size: 14px;
  padding: 30px;
}
.list-with-title li {
  list-style-type: none;
  padding: 0;
}
.list-with-title .listing-title {
  font-size: 24px;
  color: #666666;
  font-weight: 600;
  line-height: 2.2;
}
.list-with-title .listing-subTitle {
  font-size: 18px;
  color: #666666;
  font-weight: 600;
  line-height: 2.2;
  padding: 0 20px;
}
.list-with-title .listing {
  padding: 0 20px;
}
.list-with-title .listing .listing-post {
  line-height: 1.5;
  padding-bottom: 5px;
}
.list-with-title .listing .listing-post .post-time {
  float: left;
  color: #8F8F8F;
  margin-right: 15px;
}
.list-with-title .listing .listing-post a {
  color: #8F8F8F;
}
.list-with-title .listing .listing-post a:hover {
  color: #2660ab;
}
.list-with-title .listing-tag {
  padding: 20px;
  line-height: 2.2;
}
.list-with-title .listing-category {
  padding: 20px;
  line-height: 2.2;
}

/* links*/
.links {
  margin: 30px;
}
.links h3 {
  font-size: 22px;
}
.links a {
  cursor: pointer;
}

/* friends links */
.friend-link-list{
  padding: 10px;
  margin-bottom: 120px;
}
.friend-link {
  display: inline-flex;
  padding: 5px;
}
.friend-link-item {
  padding: 10px;
  max-width: 200px;
  background-color: var(--secondary-bg-color);
  border-radius: 5px;
}
.friend-link-item a {
  display: flex;
  justify-content: center;
  align-items: center;
}
.friend-link-item-img {
  margin: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.nav-link {
  display: inline-flex;
  padding: 5px;
}
.nav-link-item {
  padding: 10px;
  background-color: var(--secondary-bg-color);
  border-radius: 5px;
}
.nav-link-item a {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-link-item-img {
  margin: 5px;
  width: auto;
  height: 20px;
}

/* Buttons */
a.btn {
  color: #868686;
  font-weight: 400;
}

.btn {
  display: inline-block;
  position: relative;
  outline: 0;
  color: var(--post-color);
  background: transparent;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-color);
  white-space: nowrap;
  font-weight: 400;
  font-style: normal;
  border-radius: 999em;
}

.btn:hover {
  display: inline-block;
  position: relative;
  outline: 0px;
  color: #464545;
  background: transparent;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #464545;
  white-space: nowrap;
  font-weight: 400;
  font-style: normal;
  border-radius: 999em;
}

.page_404 {
  text-align: center;
  padding-top: 50px;
}
